﻿﻿using System.ComponentModel.DataAnnotations;
﻿using Bamboo.Helpers;

namespace VietThinks.Contract
{
    public class UserDto : IdentifiableDto
    {
        [Required(ErrorMessage = "The Login Name field is required")]
        [StringLength(90)]
        [RegularExpression(ValidationHelper.StandardCharacterPattern, ErrorMessage = "Login name must be well-formed")]
        public string LoginName { get; set; }

        [Required(ErrorMessage = "The Email field is required")]
        [StringLength(90)]
        [RegularExpression(ValidationHelper.EmailAddressPattern, ErrorMessage = "Email address must be well-formed")]
        public string Email { get; set; }

        [Required(ErrorMessage = "The Password field is required")]
        public string Password { get; set; }

        [Required(ErrorMessage = "The Password Hint field is required")]
        public string PasswordHint { get; set; }
    }
}
